package com.taskcollection.factory;

/**
 * Created by Administrator on 2016/8/7 0007.
 */
public class test {
    public static void main(String[] args){
        DogInterface dog = Dogfactory.creatDog();
        //dog.saywang();
//        EnglishFactory e = new EnglishFactory();
//        ChineseFactory c = new ChineseFactory();
//        e.createDog().saywang();
//        c.createDog().saywang();
        Dan dan = Dan.getinstance();

    }
}
